{template 'common/header'}

<div class="main">
	<ul class="nav nav-tabs">
		<li{if $_GPC['do'] == 'spmanage'} class="active"{/if}><a href="{php echo $this->createWebUrl('spmanage');}">商品管理</a></li>
        <li{if $_GPC['do'] == 'jfmanage'} class="active"{/if}><a href="{php echo $this->createWebUrl('jfmanage');}">积分兑换管理</a></li>
		<li{if $_GPC['do'] == 'admanage'} class="active"{/if}><a href="{php echo $this->createWebUrl('admanage');}">广告管理</a></li>
		<li{if $_GPC['do'] == 'baseset' || $_GPC['do'] == '' } class="active"{/if}><a href="{php echo $this->createWebUrl('baseset');}">基础设置</a></li>
	</ul>
<div class="panel panel-primary">
    <div class="panel-heading">
        功能参数设置
    </div>
    <form action="" method="post" class="form-horizontal form">
    <div class="panel-body">

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">商城标题</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" class="form-control" placeholder="" name="title" value="{$set['title']}" maxlength="255">
                <div class="help-block">积分商城主页标题。</div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否必须关注</label>
            <div class="col-sm-9">
                <label class="radio-inline">
                    <input type="radio" name="share_type" value="1" {if $set['share_type']==1} checked="checked"{/if}/>是
                </label>
                <label class="radio-inline">
                    <input type="radio" name="share_type" value="0" {if $set['share_type']==0} checked="checked"{/if}/>否
                </label>
                <div class="help-block">(此功能仅限于认证服务号)选择是，打开页面后弹出二维码，提示用户关注。</div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>关注二维码(300*300)</label>
            <div class="col-sm-9 col-xs-12">

                {php echo tpl_form_field_image('guanzhu_img',$set['guanzhu_img']);}

                <!--<input type="text" id="share_url" class="form-control" placeholder="" name="share_url" value="{$set['share_url']}">-->
                <div class="help-block">关注二维码，必须上传，未关注用户会弹出二维码让用户关注下。</div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">二维码话术</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" class="form-control" placeholder="" name="guanzhu_txt" {if empty($set['guanzhu_txt'])}value="您还未关注本公众号，长按二维码关注后，发送积分商城即可参与活动"{else} value="{$set['guanzhu_txt']}"{/if}>
                <div class="help-block">显示在关注二维码下方的文字。</div>
            </div>
        </div>

        <div class="form-group" style="display:none">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">底部广告类型</label>
            <div class="col-sm-9">
                <label class="radio-inline">
                    <input type="radio" name="btm_adtype" value="0" {if $set['btm_adtype']==0} checked="checked"{/if}/>浮动
                </label>
                <label class="radio-inline">
                    <input type="radio" name="btm_adtype" value="1" {if $set['btm_adtype']==1} checked="checked"{/if}/>固定
                </label>
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">转发赠送人数上限</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" class="form-control" placeholder="" name="share_top"  value="{$set['share_top']}" min="0">
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享每人赠送的积分数</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" class="form-control" placeholder="" name="share_num"  value="{$set['share_num']}" min="0">
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享标题</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="share_title" class="form-control" placeholder="" name="share_title" value="{$set['share_title']}"  maxlength="180">
                <div class="help-block">分享到朋友圈的自定义标题。</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享描述</label>
            <div class="col-sm-9 col-xs-12">
                <textarea style="height:60px;" id='share_desc' name="share_desc" class="form-control" cols="60" maxlength="1000">{$set['share_desc']}</textarea>
                <div class="help-block">分享到朋友圈的自定义描述。</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享图片</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_image('share_img',$set['share_img']);}
                <div class="help-block">分享到朋友圈的自定义图片。</div>
            </div>
        </div>

    <!--    <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享链接地址</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" class="form-control" placeholder="" name="shareurl"  value="{$set['shareurl']}">
            </div>
        </div>
	-->
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>头部广告图片(640*322)</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_image('top_adimg',$set['top_adimg']);}
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">头部广告链接(http://开头)</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" class="form-control" placeholder="" name="top_adurl"  value="{$set['top_adurl']}">
            </div>
        </div>

        <div class="form-group col-sm-12">
            
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
            <div class="col-sm-9 col-xs-12">
				<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-2" />
            </div>
            <input type="hidden" name="token" value="{$_W['token']}" />
        </div>
    </div>
    </form>
</div>
</div>
{template 'common/footer'}